package com.xucy.springboot.designmodel.behavioral.interpreter;

/**
 * @Author xucy
 * @Date 2019-10-31 17:32
 * @Description
 **/

public class TerminalExpression  implements Expression{

    String variable;
    public TerminalExpression(String variable){

        this.variable = variable;
    }
    @Override
    public int interpreter(Context context) {
        return context.lookup(this);
    }
}
